package com.hsj.common.system.vo.request;

import lombok.Data;

import java.io.Serializable;
import java.util.List;


@Data
public class ReqSysMenuWithChildrenVo implements Serializable {

    private String name;

    private String path;

    private String component;

    private List<ReqSysMenuWithChildrenVo> children;

    private List<Privilege> apiList;

    private MenuMeta meta;

    private Integer parentId;

    private Integer id;

    private Integer sortIndex;

    private String redirect;

    @Data
    public static class MenuMeta {
        private String title;
        private String icon;
        private String type;
        private String tag;
        private Boolean fullpage;
        private Boolean hidden;
        private String color;
        private Boolean hiddenBreadcrumb;
        private String active;
    }

    @Data
    public static class Privilege{
        String code;
        String url;
    }
}
